{% macro toolbar(edit=True, add=True, delete=True) %}
    {% if session.logged_in %}
        <div id="container-floating">
            {% if add %}
                <div class="nd3 nds" data-toggle="tooltip" title="{{ _('Add') }}" style="opacity: 1 !important; pointer-events: auto; cursor: default;">
                    <a href="{{ url_for('wiki.add_post') }}"><i class="fa fa-plus letter"></i></a>
                </div>
            {% else %}
                <div class="nd3 nds" style="opacity: .5 !important; pointer-events: none; cursor: default;">
                    <a href="#"><i class="fa fa-plus letter"></i></a>
                </div>
            {% endif %}
            {% if session.current_user.privilege == "admin" %}
                {% if delete %}
                    <div class="nd1 nds" data-toggle="tooltip" title="{{ _('Delete') }}" style="opacity: 1 !important; pointer-events: auto; cursor: default;">
                        <a href="{{ url_for('wiki.delete_post', post=request.path.split('/')[-2]) }}"><i class="fa fa-trash-o letter"></i></a>
                    </div>
                {% else %}
                    <div class="nd1 nds" style="opacity: .5 !important; pointer-events: none; cursor: default;">
                        <img class="reminder">
                        <a href="#"><i class="fa fa-trash-o letter"></i></a>
                    </div>
                {% endif %}
            {% else %}
                <div class="nd1 nds" style="opacity: .5 !important; pointer-events: none; cursor: default;">
                    <img class="reminder">
                    <a href="#"><i class="fa fa-trash-o letter"></i></a>
                </div>
            {% endif %}
            {% if edit %}
                <div id="floating-button" data-toggle="tooltip" title="{{ _('Edit') }}" style="opacity: 1 !important; pointer-events: auto; cursor: default;">
            {% else %}
                <div id="floating-button" style="opacity: .5 !important; pointer-events: none; cursor: default;">
            {% endif %}
                <p class="plus">+</p>
                {% if edit %}
                    <a href="{{ url_for('wiki.edit_post', post=request.path.split('/')[-2]) }}">
                        <img class="edit" src="https://ssl.gstatic.com/bt/C3341AA7A1A076756462EE2E5CD71C11/1x/bt_compose2_1x.png">
                    </a>
                {% else %}
                    <a href="#">
                        <img class="edit" src="https://ssl.gstatic.com/bt/C3341AA7A1A076756462EE2E5CD71C11/1x/bt_compose2_1x.png">
                    </a>
                {% endif %}
            </div>
        </div>
    {% endif %}
{% endmacro %}